package com.yunliuchain.examination.system.entity;


import com.yunliuchain.examination.common.entity.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**<p>Title:系统编号表 </p>
 * <p>Description:对应表名：t_bas_serial_number  </p>
 * <p>作者：zzc</p>
 * <p>日期：2018-05-16 15:56:49</p>
 * <p>版本：1.0</p>
 */
public class SerialNumber extends BaseEntity {

	private static final long serialVersionUID = 9003577921792264691L;
	
	/*Auto generated properties start*/
	
	/**
	 * ID
	 */
	private Long id;
	/**
	 * 编号类型
	 */
	private String type;
	/**
	 * 编号（从10000起）
	 */
	private Long sn;

	public SerialNumber() {

	}

	public SerialNumber(String type, long sn) {
		this.type = type;
		this.sn = sn;
	}


	public Long getId(){
		return id;
	}
	
	public void setId(Long id){
		this.id = id;
	}

	public String getType(){
		return type;
	}
	
	public void setType(String type){
		this.type = type;
	}

	public Long getSn(){
		return sn;
	}
	
	public void setSn(Long sn){
		this.sn = sn;
	}

	


    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE );
    }
}
